﻿using Terraria.GameContent.Creative;
using Terraria.ID;
using Terraria.ModLoader;
using Terraria;

namespace EAS.Content.Items
{
    public class GravityHorseshoe : ModItem
    {
        public override void SetStaticDefaults()
        {
            CreativeItemSacrificesCatalog.Instance.SacrificeCountNeededByItemId[Type] = 1;
        }
        public override void SetDefaults()
        {
            Item.accessory = true;
            Item.width = 24;
            Item.height = 24;
            Item.rare = ItemRarityID.LightRed;
            Item.value = Item.sellPrice(0, 1, 50, 0);
        }
        public override void UpdateAccessory(Player player, bool hideVisual)
        {
            if (player.ZoneSkyHeight)
            {
                player.gravity = 0;
            }
        }
    }
}
